package com.lesso.yjy.sunflower.infra.assembler;

import com.lesso.yjy.sunflower.model.AttendanceRecord;
import com.lesso.yjy.sunflower.pojo.dto.AttendanceRecordDTO;
import com.lesso.yjy.sunflower.pojo.vo.AttendanceRecordVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AttendanceRecordAssembler {
    AttendanceRecordAssembler INSTANCE = Mappers.getMapper(AttendanceRecordAssembler.class);

    AttendanceRecord dtoToEntity(AttendanceRecordDTO dto);

    AttendanceRecordVO entityToVO(AttendanceRecord attendanceRecord);

    List<AttendanceRecordVO> entityListToVOList(List<AttendanceRecord> attendanceRecords);
}
